from threading import Thread

class Thread_Spider1(Thread):
        def run(selt):
            for i in range(5):
                print("子线程1开始:",i)

class Thread_Spider2(Thread):
    def run(self):
        for i in range(5):
            print('子线程2开始:',i)

if __name__ == '__main__':
    t1 = Thread_Spider1()
    t1.start()
    t2 = Thread_Spider2()
    t2.start()
    for i in range(5):
        print('主线程开始:',i)